module.exports = {
  // 关闭eslint代码检测
  // lintOnSave: false,
  devServer: {
    before(app) {
      app.get('/api/login', (req, res) => {
        const { account, password } = req.query
        console.log('account:', account)
        res.json({
          code: 0,
          msg: 'success',
          data: {
            token: `${account}_token`
          }
        })
      })
    }
  }
}
